package cn.tb.ymcc.feign;

import cn.tb.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignClientFallBackFactory.class)
public interface MediaFeignClient {
    /**
     * 查询章节视频
     * @param chapterId
     * @return
     */
    @RequestMapping(value="/mediaFile/searchMediaFiles/{chapterId}",method= RequestMethod.GET)
    JSONResult searchMediaFiles(@PathVariable("chapterId") Long chapterId);

}
